import configparser
import os

curpath = os.path.dirname(os.path.realpath(__file__))
cfgpath = os.path.join(curpath,"connect.ini")

conf = configparser.ConfigParser()
conf.read(cfgpath,encoding="utf-8")

host = conf.get("mysqlconf","host")
port = conf.get("mysqlconf", "port")
user = conf.get("mysqlconf", "user")
password = conf.get("mysqlconf", "password")
db_name = conf.get("mysqlconf", "db_name")

